package edu.towson.greenteam.menu;

import junit.framework.Assert;

import org.junit.Test;


public class PriceTest {
	
	@Test
	public void testPriceCreation() {
		Price p = new Price(8.50f);
		Assert.assertNotNull("Object is not null", p);
	}
	
	@Test
	public void testGetCurrentPrice() {
		Price p = new Price(8.50f);
		Assert.assertEquals(8.50f, p.getCurrentPrice());
	}
	
	
	@Test
	public void testGetStandardPrice() {
		Price p = new Price(8.50f);
		Assert.assertEquals(8.50f, p.getStandardPrice());
	}
	
	@Test
	public void testSetCurrentPrice() {
		Price p = new Price(8.50f);
		Assert.assertEquals(8.50f, p.getCurrentPrice());
		p.setCurrentPrice(9.50f);
		Assert.assertEquals(9.50f, p.getCurrentPrice());
	}
	
	@Test
	public void testSetStandardPrice() {
		Price p = new Price(8.50f);
		Assert.assertEquals(8.50f, p.getStandardPrice());
		p.setStandardPrice(9.50f);
		Assert.assertEquals(9.50f, p.getStandardPrice());
	}
}
